//
//  MHAlertMessageView.m
//  MiaoCircle
//
//  Created by 许正荣 on 2018/4/26.
//  Copyright © 2018年 acgera. All rights reserved.
//

#import "MHAlertMessageView.h"

@implementation MHAlertMessageView

-(instancetype) initWihtTitle:(NSString *) title message:(NSString *) message
{
   MHAlertMessageView *messageAlert =  [MHAlertMessageView mh_viewFromXib];
    if (messageAlert) {
        messageAlert.layer.cornerRadius = 5.0;
        messageAlert.titleLable.text = title;
        messageAlert.messageLabel.text = message;
    }
    return messageAlert;
}

-(void)setCancelButtonTitle:(NSString *)cancelButtonTitle
{
    _cancelButtonTitle = cancelButtonTitle;
    [self.dissMissButton setTitle:cancelButtonTitle forState:0];
    
}

- (void)setComfirmButtonTitle:(NSString *)comfirmButtonTitle
{
    _comfirmButtonTitle = comfirmButtonTitle;
    [self.comfirmButton setTitle:comfirmButtonTitle forState:0];
}
@end
